package com.peng.Mapper;

import com.peng.pojo.User;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class UserMapperImpl implements UserMapper{
    private SqlSessionTemplate Sqlsession;

    public void setSqlsession(SqlSessionTemplate sqlsession) {
        Sqlsession = sqlsession;
    }

    @Override
    public List<User> getUserList() {
        UserMapper mapper = Sqlsession.getMapper(UserMapper.class);
        return mapper.getUserList();
    }
}
